package edu.westga.movierec.model;
import java.sql.*;

public class DatabaseConnector {
	public static void main (String[] args) { 
		try
		{
		// Step 1: Load the JDBC driver. 
	      Class.forName("com.mysql.jdbc.Driver");
	      // Step 2: Establish the connection to the database. 
	      String url = "jdbc:mysql://127.0.0.1:3307/jcook"; 
	      Connection conn = DriverManager.getConnection(url,"jcook","jc850812"); 
	      System.out.println("Good!");
	    }
	    catch (Exception e)
	    {
	      System.err.println("Got an exception! ");
	      e.printStackTrace();
	      System.err.println(e.getMessage()); 
	    }
	  }
	//If this works, alter to (midway down):
	//http://www.java-forums.org/eclipse/10180-connector-j-eclipse-mysql-5-0-x.html
}
